package com.openapi.config;

import exsun.jt808.data.util.SAContextHolder;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Service;

/**
 * 808服务的配置文件
 */
@Configuration
@Service
public class JT808ServerConfig {

	@Value("${http.request.url}")
	private String httpRequestUrl;

	@Value("${jt808.server.port}")
	private int jt808ServerPort;

	@Value("${jt808.ftp.server}")
	private String jt808FtpServer;

	@Value("${jt808.ftp.port}")
	private int jt808FtpPort;

	@Value("${jt808.ftp.userName}")
	private String jt808FtpUserName;

	@Value("${jt808.ftp.password}")
	private String jt808FtpPassword;

	@Value("${jt808.ftp.basePath}")
	private String jt808FtpBasePath;

	@Value("${jt808.ftp.absBasePath}")
	private String absBasePath;

	@Value("${jt808.ftp.timeOut}")
	private int jt808FtpTimeOut;

	@Value("${jt808.adasService.ip}")
	private String adasServiceIp;

	@Value("${jt808.adasService.port}")
	private int adasServicePort;

	//位置信息查询url
	@Value("${http.request.LocationUrl}")
	private String LocationUrl;

	//设备版本上报url
	@Value("${http.request.deviceVersionUrl}")
	private String deviceVersionUrl;



//	//修改激活码的地址
//	@Value("${http.request.activeCodeUrl}")
//	private String activeCodeUrl;
//
//	public String getActiveCodeUrl() {
//		return activeCodeUrl;
//	}
//
//	public void setActiveCodeUrl(String activeCodeUrl) {
//		this.activeCodeUrl = activeCodeUrl;
//	}

	public String getHttpRequestUrl() {
		return httpRequestUrl;
	}

	public int getJt808ServerPort() {
		return jt808ServerPort;
	}

	public String getJt808FtpServer() {
		return jt808FtpServer;
	}

	public int getJt808FtpPort() {
		return jt808FtpPort;
	}

	public String getJt808FtpUserName() {
		return jt808FtpUserName;
	}

	public String getJt808FtpPassword() {
		return jt808FtpPassword;
	}

	public String getJt808FtpBasePath() {
		return jt808FtpBasePath;
	}

	public int getJt808FtpTimeOut() {
		return jt808FtpTimeOut;
	}

	public String getAdasServiceIp() {
		return adasServiceIp;
	}

	public int getAdasServicePort() {
		return adasServicePort;
	}

	public String getLocationUrl() {
		return LocationUrl;
	}

	public void setLocationUrl(String locationUrl) {
		LocationUrl = locationUrl;
	}

	public String getDeviceVersionUrl() {
		return deviceVersionUrl;
	}

	public void setDeviceVersionUrl(String deviceVersionUrl) {
		this.deviceVersionUrl = deviceVersionUrl;
	}
	
	public String getAbsBasePath() {
		return absBasePath;
	}
	
	public void setAbsBasePath(String absBasePath) {
		this.absBasePath = absBasePath;
	}
}
